//javascript的类的声明其实就是一个函数function
function user() {
	//java public 
	this.name = 'zhangsan';
	this.age = 100;
	//var 就相当于java中的private
	var email = '123232@qq.com';
	this.getEmail = function() {
		return email;
	}
}

//java 里的user u=new user();
var u = new user();
//system.out.println(u.getEmail());
//alert(u.getEmail());

// json对象
var person = {
	name:'zhangsan',
	age:100
};